package com.jarvis.app.car.model;

import java.time.LocalDateTime;

public class Ticket {

    private Long id;

    private String issue;

    private String answer;

    private Long userId;

    private LocalDateTime createTime;


    public Ticket(Long id, String issue, String answer, Long userId, LocalDateTime createTime) {
        this.id = id;
        this.issue = issue;
        this.answer = answer;
        this.userId = userId;
        this.createTime = createTime;
    }

    public Ticket() {
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIssue() {
        return issue;
    }

    public void setIssue(String issue) {
        this.issue = issue;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


    @Override
    public String toString() {
        return "Ticket{" +
                "id=" + id +
                ", issue='" + issue + '\'' +
                ", answer='" + answer + '\'' +
                ", userId=" + userId +
                ", createTime=" + createTime +
                '}';
    }
}
